import { createApp } from 'vue'
// import { createPinia } from 'pinia'
// import { createPersistedState } from 'pinia-plugin-persistedstate'
import pinia from './stores'
import App from './App.vue'
import router from './router'
import 'virtual:svg-icons-register'
import './mock/index.ts' // 引入 Mock 配置文件

// 知识点：引入的样式要放到最前面，防止样式覆盖
// 知识点：推荐全量引入vant的css样式，组件按需引入（默认就可以）
import 'vant/lib/index.css'
import './styles/main.scss'

const app = createApp(App)

app.use(pinia)
app.use(router)

app.mount('#app')
